#!/usr/bin/env python# -*- coding: utf-8 -*-# @Time    : 2023/8/12 12:19# @Author  : zhaowp1109# @File    : temp.py# @Description :from fastapi.templating import Jinja2Templates# from .config import settingsfrom pathlib import Pathtemp_dir = Path(__file__).parent.parent.parent.parent/'frontend'static_dir = Path(__file__).parent.parent.parent.parent/"frontend/assets"template = Jinja2Templates(directory=temp_dir.as_posix())render = template.TemplateResponse